home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
rexxgdb2.zip
/
G2Ha.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-08-10
|
1KB
|
60 lines
/* rexx */
signal on syntax name error
signal on halt name error
signal on failure name error
'@echo off'
'cls'
say
say 'G2Ha --- Testing REXXGDB2.DLL HTML textarea tag creator function'
say ' (G2HSelect2Textarea)'
say 'Simon Husin (husin@ibm.net)'
say 'Kent, Washington, U.S.A., Dec 1996 - Aug 1997'
say
sq1 = 'Select * from staff'
htmlfn = 'G22HTML.HTM'
requestedrows = 50
if rxfuncquery('g2LoadFuncs') then do
say
say 'Loading REXXGDB2 Functions...'
call rxfuncadd 'g2LoadFuncs', 'REXXGDB2', 'g2LoadFuncs'
say 'Result =' g2LoadFuncs()
end
say
say 'Connecting to SAMPLE database...'
say 'SQLCODE='g2connectshare('SAMPLE')
say
'@del' htmlfn '1>NUL 2>NUL'
call time 'R'
call g2h htmlfn, 1, '<FORM METHOD="POST">'
call G2HSelect2Textarea htmlfn, 1, sq1
call G2HSelect2Textarea htmlfn, 1, 'sq1', requestedrows, '-',, 20, 70, 'TA2'
call g2h htmlfn, 1, '</FORM>'
elapse = time('E')
'@netscape file:///'htmlfn
/* '@explore -q' htmlfn */
say 'Execution time' elapse
say
say 'Commiting...'
call g2commit
return 0
error:
say 'Error detected at line' SIGL
return 10
syntax:
say 'Syntax error detected at line' SIGL
return 20